package com.tengju.data.infrastructure.persistence.mybatis.mapper.tengju.custom;

import com.tengju.data.infrastructure.persistence.mybatis.dataobject.WxRequestRecordDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 李大仙
 * @date: 2021/11/7 5:18 下午
 */
public interface WxRequestRecordDOCustomMapper {

    int batchInsert(@Param("list") List<WxRequestRecordDO> wxRequestRecordDOList);

    List<WxRequestRecordDO> selectByStatus(@Param("typeList") List<Integer> typeList,
                                           @Param("status") Integer wxRequestRecordStatus,
                                           @Param("orderBy") String orderBy);

    int update(@Param("wxRequestRecordDO") WxRequestRecordDO wxRequestRecordDO,
               @Param("status") Integer wxRequestRecordStatus);

    int deleteById(@Param("id") Long id);
}
